dropdown: Make search entry shrink
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Oct 2020 19:35:34 +0000 (15:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 27 Oct 2020 19:35:34 +0000 (15:35 -0400)
We don't want the popup to be wider than the button
if we can help it. The search entry does not need
to be very wide.

gtk/ui/gtkdropdown.ui

index 562366355375464563996571cf85c23ec87a70a2..e2dbdaf4d152bc9bb1727363c75368ff19948712 100644 (file)
@@ -59,6 +59,8 @@
             <signal name="search-changed" handler="search_changed"/>
             <signal name="stop-search" handler="search_stop"/>
             <property name="visible">0</property>
+            <property name="max-width-chars">6</property>
+            <property name="width-chars">6</property>
             <property name="placeholder-text" translatable="yes">Search…</property>
           </object>
         </child>